import javax.swing.*;
import java.awt.*;

public class chapter1 {
    public static void main(String[] args) {
        JFrame frame = new JFrame("游泳馆会员管理系统");
        frame.setSize(600,400);
        frame.setLocation(400,200);
        LayoutManager layoutManager=new BorderLayout();
        frame.setLayout(layoutManager);

        //第一个panel
        JPanel panel1=new JPanel(new GridLayout(3,1));

        //第二个panel
        //JPanel panel2=new JPanel();
        // panel2.setPreferredSize(new Dimension(600,100));

        //第一个panel中放置的内容
        JLabel VIPnumlable=new JLabel("卡号");
        JLabel VIPpwlable=new JLabel("密码");
        JTextField VIPnumtext=new JTextField(3);
        panel1.add(VIPnumlable);
        panel1.add(VIPnumtext);
        frame.add(panel1);

        //

        JTextField VIPpwtext=new JTextField(3);
        panel1.add(VIPpwlable);
        panel1.add(VIPpwtext);

        JMenuBar menu=new JMenuBar();
        frame.setJMenuBar(menu);
        JMenu menuVIP = new JMenu("会员"); //, menumanager = new JMenu("管理员");
        menuVIP.setMnemonic('F');
        //menumanager.setMnemonic('E');
        menu.add(menuVIP);
        //menu.add(menumanager);

        frame.setVisible(true);
        frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
    }
}
